home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / rmdir.man < prev    next >
Encoding:
Text File  |  1989-11-03  |  2.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. RMDIR                 C Library Procedures                  RMDIR
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      rmdir - remove a directory file
  10.  
  11. SSYYNNOOPPSSIISS
  12.      rrmmddiirr((ppaatthh))
  13.      cchhaarr **ppaatthh;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _R_m_d_i_r removes a directory file whose name is given by _p_a_t_h.
  17.      The directory must not have any entries other than "." and
  18.      "..".
  19.  
  20. RREETTUURRNN VVAALLUUEE
  21.      A 0 is returned if the remove succeeds; otherwise a -1 is
  22.      returned and an error code is stored in the global location
  23.      _e_r_r_n_o.
  24.  
  25. EERRRROORRSS
  26.      The named file is removed unless one or more of the follow-
  27.      ing are true:
  28.  
  29.      [ENOTDIR]      A component of the path is not a directory.
  30.  
  31.      [EINVAL]       The pathname contains a character with the
  32.                     high-order bit set.
  33.  
  34.      [ENAMETOOLONG] A component of a pathname exceeded 255 char-
  35.                     acters, or an entire path name exceeded 1023
  36.                     characters.
  37.  
  38.      [ENOENT]       The named directory does not exist.
  39.  
  40.      [ELOOP]        Too many symbolic links were encountered in
  41.                     translating the pathname.
  42.  
  43.      [ENOTEMPTY]    The named directory contains files other than
  44.                     ``.'' and ``..'' in it.
  45.  
  46.      [EACCES]       Search permission is denied for a component
  47.                     of the path prefix.
  48.  
  49.      [EACCES]       Write permission is denied on the directory
  50.                     containing the link to be removed.
  51.  
  52.      [EPERM]        The directory containing the directory to be
  53.                     removed is marked sticky, and neither the
  54.                     containing directory nor the directory to be
  55.                     removed are owned by the effective user ID.
  56.  
  57.      [EBUSY]        The directory to be removed is the mount
  58.                     point for a mounted file system.
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              August 26, 1985                        1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RMDIR                 C Library Procedures                  RMDIR
  71.  
  72.  
  73.  
  74.      [EIO]          An I/O error occurred while deleting the
  75.                     directory entry or deallocating the inode.
  76.  
  77.      [EROFS]        The directory entry to be removed resides on
  78.                     a read-only file system.
  79.  
  80.      [EFAULT]       _P_a_t_h points outside the process's allocated
  81.                     address space.
  82.  
  83. SSEEEE AALLSSOO
  84.      mkdir(2), unlink(2)
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0              August 26, 1985                        2
  130.  
  131.  
  132.  
  133.